Ext.define('appfe.stockor.statist.chart.KLineModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.stockor.statist.chart.KLine',
    data: {
        isValidSlimsymbol: false,

        klineChartPanel: null,
        klineM30ChartPanel: null,
        klineM05ChartPanel: null,
        klineM01ChartPanel: null,

        slimsymbol: null,
        stkname: null,
        klinetype: null,
        grade: null,
        isMacdDisplayed: true,
        keepIgnoredStdKline: true
    },
    formulas: {
        keepIgnoredStdKlineDisabled: {
            bind: {
                bindTo: '{klinetype}',
                deep: true
            },
            get: function (klinetype) {
                return klinetype == 'standard' ? false : true;
            }
        }
    },
    stores: {
        klineGradeStore: {
            fields: ['text', 'code'],
            data: [
                ['1分钟', 'M01'],
                ['5分钟', 'M05'],
                ['30分钟', 'M30'],
                ['日线', 'DAY']
            ]
        },
        klineTypeStore: {
            fields: ['text', 'code','tips'],
            data: [
                ['普通', 'normal','普通K线'],
                ['齐头', 'zinzen','对K线普通进行缠禅化处理, 仅展示最高/低价，忽略开/收价'],
                ['标准', 'standard','缠禅标准化K线, 无包含关系']
            ]
        }
    }
});
